import request from '../utils/request.js'

export const loginAPI = (data) => request.post('/sys/login', data)

// export function getInfo(data) {
//   return request({
//     url: '/sys/login',
//     method: 'post',
//     data
//   })
// }
// 获取用户资料
export const getUserInfoAPI = () => request.get('/sys/profile')
// 修改用户密码
export const updatePasswordAPI = (data) => request.put('/sys/user/updatePass', data)
